
package com.zbkj.service.sfexpress.order;

import lombok.Data;

import java.util.List;

@Data
public class CreateOrderMsgDataRes {

    private Object agentMailno;
    private Object contactInfoList;
    private String destCode;
    private Long filterResult;
    private Object isSpecialWarehouseService;
    private Object isUpstairs;
    private Object mappingMark;
    private String orderId;
    private String originCode;
    private Object paymentLink;
    private String remark;
    private Object returnExtraInfoList;
    private List<RouteLabelInfo> routeLabelInfo;
    private Object url;
    private List<WaybillNoInfoList> waybillNoInfoList;

    public String getExpressNo() {
        return waybillNoInfoList.stream().filter(it -> it.getWaybillType() == 1).findFirst().orElseGet(WaybillNoInfoList::empty).getWaybillNo();
    }


}
